package elven.codingit.dubbo.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import elven.codingit.dubbo.api.TestApiService;

@Controller
public class HelloDubboController {

	@Autowired
	private TestApiService testApiService;
	
	@RequestMapping("/hello")
	@ResponseBody
	public String hello(String name){
		return testApiService.hello(name);
	}
	
}
